﻿<UserControl
    x:Class="SpatialHashLib.LineSegmentPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300"
    Width="500"
    >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Border Grid.Column="1" BorderBrush="Black" BorderThickness="1" >
            <Canvas
                x:Name="mainCanvas"
                MouseLeftButtonDown="mainCanvas_MouseLeftButtonDown"
                MouseMove="mainCanvas_MouseMove"
                MouseLeftButtonUp="mainCanvas_MouseLeftButtonUp"
                Background="Transparent"
                >
                <Canvas x:Name="gridlines" />
                <Rectangle x:Name="searchRect" Visibility="Collapsed" Stroke="Red" StrokeThickness="1" Fill="AliceBlue" Opacity=".7" />
            </Canvas>
        </Border>
        <Grid Grid.Column="0" Background="White">
            <StackPanel x:Name="menu" Margin="5">
                <RadioButton x:Name="add" GroupName="menuGroup" Checked="add_Checked">
                    Add
                </RadioButton>
                <RadioButton x:Name="edit" GroupName="menuGroup" Checked="edit_Checked">
                    Edit
                </RadioButton>
            </StackPanel>
        </Grid>

    </Grid>
</UserControl>
